import XYZ from "ol/source/XYZ";
import Tile from "ol/layer/Tile";
import { tianditu } from '@/config/config'

const tiandituUrl = tianditu

export const tiandituVecLayer = {
    vec_w: new Tile({
        source: new XYZ({
            url: tiandituUrl.vec_w,
        }),
        visible: true
    }),
    cva_w: new Tile({
        source: new XYZ({
            url: tiandituUrl.cva_w,
        }),
        visible: true
    })
}

export const tiandituImgLayer = {
    img_w: new Tile({
        source: new XYZ({
            url: tiandituUrl.img_w,
        }),
        visible: false
    }),
    cia_w: new Tile({
        source: new XYZ({
            url: tiandituUrl.cia_w,
        }),
        visible: false
    })
}